IF NOT EXISTS (select * from dbo.syscolumns where id = object_id(N'[dbo].[EntityMetaFieldLinks]') AND Name = 'DefaultValue' )
ALTER TABLE [dbo].[EntityMetaFieldLinks] ADD [DefaultValue] nvarchar(max)
go
IF NOT EXISTS (select * from dbo.syscolumns where id = object_id(N'[dbo].[EntityMetaFieldLinks]') AND Name = 'EditorName' )
ALTER TABLE [dbo].[EntityMetaFieldLinks] ADD [EditorName] nvarchar(255)
go